package com.code.base.sys.service;

import java.util.List;
import java.util.Date;
import java.util.Map;
import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.code.base.sys.persistence.SysRoleMenuMapper;
import com.code.base.sys.pojo.SysRoleMenu;
import com.code.util.PrimaryKeyUtil;


@Service
public class SysRoleMenuService {


	@Resource
	private SysRoleMenuMapper sysRoleMenuMapper;

	public Long getInsertId() {
		return PrimaryKeyUtil.generatePrimaryKey();
	}

	public SysRoleMenu getDataById(Long id) {
		return sysRoleMenuMapper.getDataById(id);
	}

	public List<SysRoleMenu> getAllData() {
		return sysRoleMenuMapper.getAllData();
	}

	public int getDataCountByCondition(SysRoleMenu entity) {
		return sysRoleMenuMapper.getDataCountByCondition(entity);
	}

	public List<SysRoleMenu> getDataByCondition(SysRoleMenu entity) {
		return sysRoleMenuMapper.getDataByCondition(entity);
	}

	public int getDataCountByLikeCondition(SysRoleMenu entity) {
		return sysRoleMenuMapper.getDataCountByLikeCondition(entity);
	}

	public List<SysRoleMenu> getDataByLikeCondition(SysRoleMenu entity) {
		return sysRoleMenuMapper.getDataByLikeCondition(entity);
	}

	public List<SysRoleMenu> getDataByIds(Long[] ids) {
		return sysRoleMenuMapper.getDataByIds(ids);
	}

	public void insertData(SysRoleMenu entity) {
		sysRoleMenuMapper.insertData(entity);
	}

	public void updateData(SysRoleMenu entity) {
		sysRoleMenuMapper.updateData(entity);
	}

	public void updateDataByParam(Map<String, Object> map) {
		if (map.size() == 0)
			return;

		sysRoleMenuMapper.updateDataByParam(map);
	}

	public void deleteDataByObject(SysRoleMenu entity) {
		sysRoleMenuMapper.deleteDataByObject(entity);
	}

	public void deleteDataById(Long id) {
		sysRoleMenuMapper.deleteDataById(id);
	}

	public void deleteDataByIds(Long[] ids) {
		sysRoleMenuMapper.deleteDataByIds(ids);
	}

}
